package ioc;

/**
 * @author vivi
 * @description
 * @date 2024/5/19
 */
public class Car {
    private Framework framework;
    public Car(Framework framework) {
        this.framework = framework;
    }
    // 依赖车身
    public void init() {
        System.out.println("执行了 car init方法");
        framework.init();
    }
}
